<template>
<div>
  <el-pagination
  background
  layout="sizes,prev, pager, next"
  :total="pagination.total"
  :current-page="pagination.pageNum"
  :page-size="pagination.pageSize"
  :page-sizes="[5,10,15,20]"
  @current-change="currentChange"
  >
</el-pagination>

</div>
</template>

<script>
import {mapState,mapActions} from 'vuex'
export default {
    computed:{
        ...mapState("student",["pagination"])
    },
    methods:{
        currentChange(current){
            // this.$emit('show',{page:current,size:5});
            this.show({page:current,size:5});
        },
        ...mapActions("student",["show"])
    }
}
</script>

<style>

</style>